<?php $this->_extends('_layouts/main_layout')?>

<?php $this->_block('title'); ?>
Register to Play and Win - LaLaLoot
<?php $this->_endblock(); ?>

<?php $this->_block('keywords');?>
<meta name="keywords" content="<?php echo $site['keywords']; ?>" />
<?php $this->_endblock();?>

<?php $this->_block('description');?>
<meta name="description" content="LaLaLoot: join our community of casual gamers." />
<?php $this->_endblock();?>

<?php $this->_block('content'); ?>
<div class="mt">
	<?php $this->_element('social'); ?>
</div>
<div class="mm help" style="padding:0 18px; width:93%">
	<div class="left white" style="position:relative;">
		<div class="title">Start Now and Receive 5 Free Spins!</div>
		<p style="font-size:16px">
		Congratulations! Please register your account to claim your prize and continue playing our game. Register now and receive 5 FREE spins!
		</p>
		<form action="<?php echo url('user/registering'); ?>" method="post">
			<ul class="errors">
				<?php 
					if(isset($errors)){
						foreach ($errors as $error){
							echo "<li>$error</li>";
						}
					}
				?>
			</ul>
			<div class="left">
				<div class="tr">
					<div class="lable left">* Title</div>
					<div class="m left">
						<select name="gender">
							<option value="M" <?php echo isset($accountinfo['gender']) && $accountinfo['gender'] == 'M' ? 'selected="selected"' : '' ?>>Mr.</option>
							<option value="F" <?php echo isset($accountinfo['gender']) && $accountinfo['gender'] == 'F' ? 'selected="selected"' : '' ?>>Ms.</option>
						</select>
					</div>
					<div class="clear"></div>
				</div>
				<div class="tr">
					<div class="lable left">* First Name</div>
					<div class="m left">
						<input class="inputtxt" name="firstname" id="firstname" value="<?php echo isset($accountinfo['fname']) ? $accountinfo['fname'] : ''; ?>"/>
					</div>
					<div class="clear"></div>
				</div>
				<div class="tr">
					<div class="lable left">* Last Name</div>
					<div class="m left">
						<input class="inputtxt" name="lastname" id="lastname" value="<?php echo isset($accountinfo['lname']) ? $accountinfo['lname'] : ''; ?>"/>
					</div>
					<div class="clear"></div>
				</div>
				<div class="tr">
					<div class="lable left">* Date of Birth</div>
					<div class="m left">
						<span class="day">
							<select id="day" class="" name="birthDay">
								<option value="" selected="selected" label="Day">Day</option>
								<?php 
									$days = array(
											'01', '02', '03', '04', '05', '06', '07', '08', '09'
											,'10', '11', '12', '13', '14', '15', '16', '17', '18', '19'
											,'20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'
									);
									foreach ($days as $day):
									
										if(isset($accountinfo['birthDay']) && $accountinfo['birthDay'] == $day):
								?>
											<option value="<?php echo $day?>" selected="selected"><?php echo $day?></option>
										<?php else: ?>
											<option value="<?php echo $day?>"><?php echo $day?></option>
								<?php 
									endif;
									endforeach;
								?>
								</select>
						</span>
						<span class="month">
							<select id="month" class="" name="birthMonth">
								<option value=""  label="Month">Month</option>
								<option value="01" label="January" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '01')? 'selected="selected"' : '';?>>January</option>
								<option value="02" label="February" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '02')? 'selected="selected"' : '';?>>February</option>
								<option value="03" label="March" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '03')? 'selected="selected"' : '';?>>March</option>
								<option value="04" label="April" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '04')? 'selected="selected"' : '';?>>April</option>
								<option value="05" label="May" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '05')? 'selected="selected"' : '';?>>May</option>
								<option value="06" label="June" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '06')? 'selected="selected"' : '';?>>June</option>
								<option value="07" label="July" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '07')? 'selected="selected"' : '';?>>July</option>
								<option value="08" label="August" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '08')? 'selected="selected"' : '';?>>August</option>
								<option value="09" label="September" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '09')? 'selected="selected"' : '';?>>September</option>
								<option value="10" label="October" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '10')? 'selected="selected"' : '';?>>October</option>
								<option value="11" label="November" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '11')? 'selected="selected"' : '';?>>November</option>
								<option value="12" label="December" <?php echo (isset($accountinfo['birthMonth']) && $accountinfo['birthMonth'] == '12')? 'selected="selected"' : '';?>>December</option>
							</select>
						</span>
						
						<span class="year">
							<select id="year" class="" name="birthYear">
								<option value="" selected="selected" label="Year">Year</option>
								<?php 
									$currentYear = (int) date('Y');
									$maxYear = $currentYear-18;
									$minYear = $currentYear-100;
									for ($i = $maxYear; $i >= $minYear; $i--) :
								?>
									<option value="<?php echo $i; ?>" <?php echo (isset($accountinfo['birthYear']) && intval($accountinfo['birthYear']) == $i) ? 'selected="selected"' : '';?>><?php echo $i;?></option>
								<?php endfor;?>
							</select>
						</span>
					</div>
					
					<div class="clear"></div>
				</div>
				<div class="tr">
					<div class="lable left">* Email</div>
					<div class="m left">
						<input class="inputtxt" name="email" id="email"
							value="<?php echo isset($accountinfo['email']) ? $accountinfo['email'] : ''; ?>" />
					</div>
					<div class="clear"></div>
				</div>
				<div class="tr">
					<div class="lable left">* Password</div>
					<div class="m left">
						<input class="inputtxt" type="password" name="password" id="password" />
					</div>
					<div class="clear"></div>
				</div>
				<div class="tr">
					<div class="lable left">* Verify Password</div>
					<div class="m left">
						<input class="inputtxt" type="password" name="repassword" id="repassword" />
					</div>
					<div class="clear"></div>
				</div>
				<div class="tr" id="phone_row" style="display:none">
					<div class="lable left">Phone</div>
					<div class="m left">
						<input class="inputphone" maxlength="3" name="countryCode" id="countryCode" value="<?php echo isset($accountinfo['countryCode']) ? $accountinfo['countryCode'] : ''; ?>"/>
						<input class="inputphone" maxlength="3" name="areaCode" id="areaCode" value="<?php echo isset($accountinfo['areaCode']) ? $accountinfo['areaCode'] : ''; ?>"/> 
						<input	class="inputphone" maxlength="4" name="subscriberNumber" id="subscriberNumber" value="<?php echo isset($accountinfo['subscriberNumber']) ? $accountinfo['subscriberNumber'] : ''; ?>"/>
					</div>
					<div class="error left">Invalid number, eg:123-456-7890</div>
					<div class="clear"></div>
				</div>
				<div class="row">
					<div class="lable left"></div>
					<input type="checkbox" name="terms" id="terms" />
					<label for="terms">By checking this box I agree that I am a UK resident over the age of 18, agree to the <a href="<?php echo url('privacypolicy');?>" target="_blank">Privacy Policy</a> and the <a href="<?php echo url('terms');?>" target="_blank">Terms and Conditions</a>, and agree to receive daily offers from LaLaLoot.co.uk and its affiliates.</label>
					<div class="clear"></div>
				</div>
				
				
				
<!--			<div class="row">
					<div class="lable left"></div>
					<input type="checkbox" name="optin_edu" id="optin_edu" value="1" <?php echo isset($accountinfo['optin_edu']) && $accountinfo['optin_edu']=='1' ? 'checked="checked"' : '';?> />
					<label for="optin_edu">Looking for a way to save? Sign up to receive Eversave Coupons & Savings emails with FREE samples, grocery coupons, budget recipes & more!</label> 
					<div class="clear"></div>
				</div>
				<div class="row">
					<div class="lable left"></div>
					<input type="checkbox" name="optin_sj" id="optin_sj" value="1" <?php echo isset($accountinfo['optin_sj']) && $accountinfo['optin_sj']=='1' ? 'checked="checked"' : '';?> />
					<label for="optin_sj">Get Paid to Review products online for cash and rewards with Shopping Jobs.com, It’s free to Join!</label> 
					<div class="clear"></div>
				</div>
 -->
 


				<div style="position:absolute; right:0; top:10px;">
					<div class="lable left"></div>
					<div class="m left">* required field</div>
					<div class="info left"></div>
				</div>
				<div class="tr">
					<div class="info left"></div>
					<div class="lable left"></div>
					<div class="lable left"></div>
					<div class="m left save" style="width:208px;">
						<input type="submit" style="background:url(<?php echo $img_url;?>submit.png) transparent no-repeat; border:none; width:208px; height:51px; cursor:pointer;" name="submit" value="" />
					</div>
					<div class="info left"></div>
					<div class="clear"></div>
				</div>
			</div>
		</form>
	</div>
	<div class="clear" style="height: 20px;"></div>
	<div class="bottomad">
	</div>
</div>
<div class="mb"></div>

<?php $this->_endblock(); ?>